<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>伪类选择器 | 前端学习笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="cdd">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/css/pseudo-elementselector.html" />
    
    
    <link rel="prev" href="../../md/css/attributeselectors.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.6"
        data-chapter-title="伪类选择器"
        data-filepath="md/css/Pseudo-classselector.md"
        data-basepath="../.."
        data-revision="Fri Jan 05 2018 09:31:29 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/html/html.html">
            
                
                    <a href="../../md/html/html.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/html/first.html">
            
                
                    <a href="../../md/html/first.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        入门
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="md/html/abiaoqian.html">
            
                
                    <a href="../../md/html/abiaoqian.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="md/html/amaodian.html">
            
                
                    <a href="../../md/html/amaodian.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        a标签锚点
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="md/html/img.html">
            
                
                    <a href="../../md/html/img.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        img标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="md/html/table.html">
            
                
                    <a href="../../md/html/table.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        table表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="md/html/area.html">
            
                
                    <a href="../../md/html/area.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        area标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="md/html/audio.html">
            
                
                    <a href="../../md/html/audio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        audio标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="md/html/picture.html">
            
                
                    <a href="../../md/html/picture.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        picture标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="md/html/video.html">
            
                
                    <a href="../../md/html/video.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.9.</b>
                        
                        video标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="md/html/base.html">
            
                
                    <a href="../../md/html/base.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.10.</b>
                        
                        base标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="md/html/character-entities.html">
            
                
                    <a href="../../md/html/character-entities.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.11.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="md/html/dl.html">
            
                
                    <a href="../../md/html/dl.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.12.</b>
                        
                        dl标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="md/html/gitbook.html">
            
                
                    <a href="../../md/html/gitbook.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.13.</b>
                        
                        gitbook
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="md/html/icon.html">
            
                
                    <a href="../../md/html/icon.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.14.</b>
                        
                        icon标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="md/html/iframe.html">
            
                
                    <a href="../../md/html/iframe.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.15.</b>
                        
                        iframe标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="md/html/nodejs.html">
            
                
                    <a href="../../md/html/nodejs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.16.</b>
                        
                        nodejs
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="md/html/ol.html">
            
                
                    <a href="../../md/html/ol.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.17.</b>
                        
                        ol标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="md/html/ul.html">
            
                
                    <a href="../../md/html/ul.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.18.</b>
                        
                        ul标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="md/html/weibo-component.html">
            
                
                    <a href="../../md/html/weibo-component.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.19.</b>
                        
                        weibo组件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="md/html/form.html">
            
                
                    <a href="../../md/html/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.20.</b>
                        
                        form标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="md/html/register.html">
            
                
                    <a href="../../md/html/register.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.21.</b>
                        
                        register
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/css/css.html">
            
                
                    <a href="../../md/css/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="md/css/cssimport.html">
            
                
                    <a href="../../md/css/cssimport.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS的引入方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="md/css/elementselector.html">
            
                
                    <a href="../../md/css/elementselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        element元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="md/css/class&amp;idselector.html">
            
                
                    <a href="../../md/css/class&amp;idselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        class&amp;id选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="md/css/relationselector.html">
            
                
                    <a href="../../md/css/relationselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        relation关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="md/css/attributeselectors.html">
            
                
                    <a href="../../md/css/attributeselectors.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        属性选择符
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="2.6" data-path="md/css/Pseudo-classselector.html">
            
                
                    <a href="../../md/css/Pseudo-classselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="md/css/pseudo-elementselector.html">
            
                
                    <a href="../../md/css/pseudo-elementselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="md/css/font.html">
            
                
                    <a href="../../md/css/font.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        font字体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="md/css/color.html">
            
                
                    <a href="../../md/css/color.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        color颜色
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="md/css/text-decoration.html">
            
                
                    <a href="../../md/css/text-decoration.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        text-decoration文本装饰
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="md/css/text-shadow.html">
            
                
                    <a href="../../md/css/text-shadow.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.11.</b>
                        
                        text-shadow文本阴影
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="md/css/margin-box.html">
            
                
                    <a href="../../md/css/margin-box.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.12.</b>
                        
                        边距盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.13" data-path="md/css/block-inline-level.html">
            
                
                    <a href="../../md/css/block-inline-level.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.13.</b>
                        
                        块级元素、行内元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.14" data-path="md/css/inline-block-align.html">
            
                
                    <a href="../../md/css/inline-block-align.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.14.</b>
                        
                        行内块元素的垂直对齐
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.15" data-path="md/css/vertical-align.html">
            
                
                    <a href="../../md/css/vertical-align.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.15.</b>
                        
                        vertical-align元素垂直对齐方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.16" data-path="md/css/margin-border.html">
            
                
                    <a href="../../md/css/margin-border.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.16.</b>
                        
                        margin相邻的奇异现象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.17" data-path="md/css/Document-flow.html">
            
                
                    <a href="../../md/css/Document-flow.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.17.</b>
                        
                        Document flow文档流
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.18" data-path="md/css/float.html">
            
                
                    <a href="../../md/css/float.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.18.</b>
                        
                        float浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.19" data-path="md/css/floatexercise.html">
            
                
                    <a href="../../md/css/floatexercise.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.19.</b>
                        
                        float浮动练习
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.20" data-path="md/css/images.html">
            
                
                    <a href="../../md/css/images.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.20.</b>
                        
                        图片处理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.21" data-path="md/css/word.html">
            
                
                    <a href="../../md/css/word.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.21.</b>
                        
                        文字处理
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="md/work-box/study.html">
            
                
                    <a href="../../md/work-box/study.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        工具安装使用
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="md/work-box/git.html">
            
                
                    <a href="../../md/work-box/git.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        git
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="md/plastic-JavaScript/JavaScript-chedan.html">
            
            <span><b>4.</b> JavaScript</span>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >前端学习笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h3 id="&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;&#x7684;&#x4F7F;&#x7528;">&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;&#x7684;&#x4F7F;&#x7528;</h3>
<h4 id="&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;">&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x5668;(:)</h4>
<p><strong>&#x5728;&#x6307;&#x5B9A;&#x8303;&#x56F4;&#x5185;&#x7684;&#x5143;&#x7D20;&#xFF0C;&#x7CBE;&#x7EC6;&#x63A7;&#x5236;&#x5176;&#x4E2D;&#x67D0;&#x4E00;&#x5143;&#x7D20;<br>&#x6CE8;&#x610F;&#xFF1A;&#x5BF9;&#x73B0;&#x6709;&#x7684;&#x76EE;&#x6807;&#x5143;&#x7D20;&#xFF0C;&#x8FDB;&#x884C;&#x66F4;&#x52A0;&#x8BE6;&#x7EC6;&#x7684;&#x72B6;&#x6001;&#x63A7;&#x5236;</strong></p>
<pre><code>&lt;ul class=&quot;nav&quot;&gt;
    &lt;li&gt;&lt;a href=&quot;http://baidu.com&quot;&gt;&#x65B0;&#x95FB;1&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;http://baidu.com&quot;&gt;&#x65B0;&#x95FB;2&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;http://baidu.com&quot;&gt;&#x65B0;&#x95FB;3&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;http://baidu.com&quot;&gt;&#x65B0;&#x95FB;4&lt;/a&gt;&lt;/li&gt;
    &lt;div&gt;&lt;a href=&quot;http://baidu.com&quot;&gt;&#x5389;&#x5BB3;&#x4E86;&lt;/a&gt;&lt;/div&gt;
&lt;/ul&gt;
</code></pre><h4 id="&#x6839;&#x636E;&#x6307;&#x5B9A;&#x5143;&#x7D20;&#x7684;&#x7C7B;&#x578B;&#xFF0C;&#x6765;&#x505A;&#x7CBE;&#x51C6;&#x63A7;&#x5236;">&#x6839;&#x636E;&#x6307;&#x5B9A;&#x5143;&#x7D20;&#x7684;&#x7C7B;&#x578B;&#xFF0C;&#x6765;&#x505A;&#x7CBE;&#x51C6;&#x63A7;&#x5236;</h4>
<p><strong>nth-of-type&#x7CFB;&#x5217;&#xFF0C;&#x9996;&#x5148;&#x6761;&#x4EF6;&#x5FC5;&#x987B;&#x662F;&#x6307;&#x5B9A;&#x7684;&#x5143;&#x7D20;&#x7C7B;&#x578B;&#xFF0C;&#x7136;&#x540E;&#x624D;&#x8003;&#x8651;&#x4F4D;&#x7F6E;&#x3002;</strong></p>
<pre><code>.nav li:last-of-type{
    color: pink;
}
.nav li:first-of-type{
    color: purple;
}
.nav li:nth-of-type(2){
    color: yellow;
}
</code></pre><p><strong>nth-child&#x7CFB;&#x5217;&#xFF0C;&#x9996;&#x8981;&#x6761;&#x4EF6;&#x662F;&#x7B26;&#x5408;&#x4F4D;&#x7F6E;&#xFF0C;&#x7136;&#x540E;&#x624D;&#x8003;&#x8651;&#x6307;&#x5B9A;&#x5143;&#x7D20;&#x7C7B;&#x578B;&#x3002;</strong></p>
<pre><code>.nav li:first-child{
    color: skyblue;
}
.nav li:last-child{
    color: burlywood;
}
.nav li:nth-child(2){
    color: pink;
}
</code></pre><pre><code> *ul li&#xFF1A;first of child{}   &#xFF08;ul&#x4E0B;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x5B50;&#x5143;&#x7D20;&#xFF0C;&#x5E76;&#x4E14;&#x4E3A;li&#x7C7B;&#x578B; &#xFF09;    
 *ul li&#xFF1A;first of type{}    &#xFF08;ul&#x4E0B;&#x9762;&#x7B2C;&#x4E00;&#x4E2A;li&#x7C7B;&#x578B;&#x7684;&#x5B50;&#x5143;&#x7D20;&#xFF09;
 *ul :first-child{}            &#xFF08;ul&#x4E0B;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x5B50;&#x5143;&#x7D20;&#xFF09;
</code></pre><p><img src="../../media/css1.png" alt="&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x7B26;">
<img src="../../media/css2.png" alt="&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x7B26;"></p>
<pre><code> * E:link             &#x8BBE;&#x7F6E;&#x8D85;&#x94FE;&#x63A5;a&#x5728;&#x672A;&#x88AB;&#x8BBF;&#x95EE;&#x524D;&#x7684;&#x6837;&#x5F0F;&#x3002;
 * E:visited          &#x8BBE;&#x7F6E;&#x8D85;&#x94FE;&#x63A5;a&#x5728;&#x5176;&#x94FE;&#x63A5;&#x5730;&#x5740;&#x5DF2;&#x88AB;&#x8BBF;&#x95EE;&#x8FC7;&#x65F6;&#x7684;&#x6837;&#x5F0F;&#x3002;
 * E:hover          &#x8BBE;&#x7F6E;&#x5143;&#x7D20;&#x5728;&#x5176;&#x9F20;&#x6807;&#x60AC;&#x505C;&#x65F6;&#x7684;&#x6837;&#x5F0F;&#x3002;
 * E:active           &#x8BBE;&#x7F6E;&#x5143;&#x7D20;&#x5728;&#x88AB;&#x7528;&#x6237;&#x6FC0;&#x6D3B;&#xFF08;&#x5728;&#x9F20;&#x6807;&#x70B9;&#x51FB;&#x4E0E;&#x91CA;&#x653E;&#x4E4B;&#x95F4;&#x53D1;&#x751F;&#x7684;&#x4E8B;&#x4EF6;&#xFF09;&#x65F6;&#x7684;&#x6837;&#x5F0F;&#x3002;
 * E:focus            &#x8BBE;&#x7F6E;&#x5BF9;&#x8C61;&#x5728;&#x6210;&#x4E3A;&#x8F93;&#x5165;&#x7126;&#x70B9;&#xFF08;&#x8BE5;&#x5BF9;&#x8C61;&#x7684;onfocus&#x4E8B;&#x4EF6;&#x53D1;&#x751F;&#xFF09;&#x65F6;&#x7684;&#x6837;&#x5F0F;&#x3002;
 * E:lang(fr)        &#x5339;&#x914D;&#x4F7F;&#x7528;&#x7279;&#x6B8A;&#x8BED;&#x8A00;&#x7684;E&#x5143;&#x7D20;&#x3002;
</code></pre><h4 id="hover">hover</h4>
<ul>
<li>&#x901A;&#x5E38;&#x5236;&#x4F5C;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x7528;&#x7684;&#x66F4;&#x591A;&#x7684;&#x662F;hover</li>
<li>&#x6CA1;&#x6709;hover&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x8868;&#x793A;&#x6B63;&#x5E38;&#x72B6;&#x6001;</li>
<li>&#x6709;hover&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x8868;&#x793A;&#x6FC0;&#x6D3B;&#x72B6;&#x6001;&#xFF08;&#x4E92;&#x52A8;&#x72B6;&#x6001;&#xFF09;<pre><code>.nav a:hover{
  background: yellow
}
</code></pre></li>
</ul>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/css/attributeselectors.html" class="navigation navigation-prev " aria-label="Previous page: 属性选择符"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/css/pseudo-elementselector.html" class="navigation navigation-next " aria-label="Next page: 伪对象选择器"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
